package com.bifang.common.vo.dict;

import com.bifang.common.vo.BasePageVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel(value = "通用查询(搜索框)", description = "通用查询(搜索框)")
public class SearchQueryVO extends BasePageVO {
    @ApiModelProperty("参数字段")
    private List<CommonQueryVO> queryList;

    @ApiModelProperty("结果字段")
    private List<String> resultList;

    @ApiModelProperty("结果字段名key")
    @NotBlank(message = "key字段不能为空（实体类字段）")
    private String keyName;

    @ApiModelProperty("结果字段名value")
    @NotBlank(message = "value字段不能为空（实体类字段）")
    private String valueName;

    @ApiModelProperty("表名")
    @NotBlank(message = "表名不能为空（数据库中表名）")
    private String tableName;

    @ApiModelProperty("搜索字段")
    private String searchField;

    @ApiModelProperty("搜索字段的值")
    private String searchText;

    @ApiModelProperty("已选择的数据")
    private List<Object> selectList;

    @ApiModelProperty("正序字段")
    private List<String> ascList;

    @ApiModelProperty("倒序字段")
    private List<String> descList;
}
